package jp.seraph.same.core;

import jp.seraph.jsade.core.Player;
import jp.seraph.jsade.core.World;
import jp.seraph.jsade.task.TaskSelector;
import jp.seraph.jsade.task.TaskSelectorAgent;
import jp.seraph.same.model.DefaultAgentModel;

public class EditorAgent extends TaskSelectorAgent {
    public EditorAgent(DefaultAgentModel aModel, TaskSelector aSelector) {
        super(aSelector);
        mModel = aModel;
    }

    private DefaultAgentModel mModel;

    /**
     *
     * @see jp.seraph.jsmf.MotionAgent#think(jp.seraph.jsade.core.World)
     */

    public void think(World aWorld, Player aPlayer) {
        mModel.updateModel(aWorld);
        super.think(aWorld, aPlayer);
    }
}
